package com.aplikata.evok.bo;

/**
 * @ClassName: PatientQtnaireResult
 * @Description: TODO
 * @author Huyun
 * @date 15. 5. 2012. 14:00:36
 */
public class PatientQtnaireResult extends PatientQtnaireQtInput {

	private static final long serialVersionUID = 1L;

	private ResultDetail resultDetail;
	private Long resultId;

	// Constructors

	/** default constructor */
	public PatientQtnaireResult() {
	}
	
	/** minimal constructor */
	public PatientQtnaireResult(PatientQtnaire patientQtnaire, Qt qt) {
		super(patientQtnaire, qt);
	}

	// Property accessors

	public ResultDetail getResultDetail() {
		return resultDetail;
	}

	public void setResultDetail(ResultDetail resultDetail) {
		this.resultDetail = resultDetail;
	}

	public Long getResultId() {
		if(resultId == null && resultDetail != null)
			resultId = resultDetail.getId();
		return resultId;
	}

	public void setResultId(Long resultId) {
		this.resultId = resultId;
	}
}